package cn.z2huo.usercenter.authentication.app.config;

import cn.z2huo.usercenter.authentication.app.interceptor.FixedWindowLimitLoginInterceptor;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * <p>
 *
 * @author z2huo
 */
@Configuration
@RequiredArgsConstructor
public class WebConfig implements WebMvcConfigurer {

    private final FixedWindowLimitLoginInterceptor fixedWindowLimitLoginInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(fixedWindowLimitLoginInterceptor).addPathPatterns("/login");
    }
}
